const mongoose=require('mongoose');

var OrderSchema = new mongoose.Schema({
    orderTime:Date,
    total:Number,
    taken:Number,
    dishes:[],
    score:Number,
    comments:String,
    address:String,
    merchant:{type:mongoose.Schema.Types.ObjectId,ref:'merchant'},
    user:{type:mongoose.Schema.Types.ObjectId,ref:'user'}
});
mongoose.model("order",OrderSchema);